﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SGQ.View
{
    public partial class FormMain : Form
    {
        public Controller.SessionApplication Session {get; set;}
        public FormMain()
        {
            InitializeComponent();
            Session = new Controller.SessionApplication();
        }

        private void cadastroDeUsuarioClick(object sender, EventArgs e)
        {
            FormManterUsuario usuario =  new FormManterUsuario();
            usuario.MdiParent = this;
            usuario.WindowState = FormWindowState.Maximized;
            usuario.Session = this.Session;
            usuario.Show();
        }

        private void cadasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormManterUsuario usuario = new FormManterUsuario();
            usuario.MdiParent = this;
            usuario.WindowState = FormWindowState.Maximized;
            usuario.Session = this.Session;
            usuario.Show();
        }

        private void departamentoClick(object sender, EventArgs e)
        {
            FormManterDepartamento departamento =
                new FormManterDepartamento();
            departamento.MdiParent = this;
            departamento.WindowState = FormWindowState.Maximized;
            departamento.Session = this.Session;
            departamento.Show();
        }

        private void materialClick(object sender, EventArgs e)
        {
            FormManterMaterial material =   new FormManterMaterial();
            material.MdiParent = this;
            material.WindowState = FormWindowState.Maximized;
            material.Session = this.Session;
            material.Show();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {

        }
    }
}
